package cn.getech.data.development.model.req.search;

import cn.getech.data.intelligence.common.utils.PageReq;
import com.cloudera.impala.sqlengine.executor.etree.IETExpr;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.List;

@ApiModel(description = "数据查询")
@Data
public class DataSearchReq extends PageReq {
    @ApiModelProperty(value = "表名称名称")
    private String tableName;
    @ApiModelProperty(value = "字段名称")
    private String fieldName;
    @ApiModelProperty(value = "指标名称")
    private String targetName;
    @ApiModelProperty(value = "数据源")
    private String dataSource;
    @ApiModelProperty(value = "数据服务")
    private String dataService;
    @ApiModelProperty(value = "采集任务")
    private String collectTask;
    // 1 tableName 表  2 fieldName 字段 3 targetName 指标 4 dataSource 数据源 5 dataService 数据服务 6 collectTask 采集任务
    @ApiModelProperty(value = "搜索类型")
    private String searchType;
    /**
     * 指标类型
     */
    @ApiModelProperty(value = "指标类型")
    private Integer targetType;

    @ApiModelProperty(value = "项目名称")
    private Integer projectId;

    @ApiModelProperty(value = "去除的项目id")
    private Integer notProjectId;


    @ApiModelProperty(value = "主题名称")
    private Integer subjectId;

    @ApiModelProperty(value = "库名")
    private String dbName;

    @ApiModelProperty(value = "排序")
    private String orderBy;

    @ApiModelProperty(value = "是否核心指标")
    private Boolean isOnlyShowCore;
    @ApiModelProperty(value = "topic")
    private String topicName;

    //创建人
    private String createPerName;
    private List<Integer> resourceIds;
    private Long userId;
    @ApiModelProperty(value = "创建人")
    private Long createUser;
    /**
     * 1 内部表  2 外部表
     */
    @ApiModelProperty(value = "表类型")
    private Integer tableType;
    /**
     * 类目id
     */
    @ApiModelProperty(value = "类目id")
    private Integer categoryId;
    private List<Integer> ids;
    private Integer tenantId;
    private Integer  searchUserId;
    @ApiModelProperty(value = "数据源类型")
    private Integer dataSourceType;
    @ApiModelProperty(value = "采集任务类型")
    private Integer taskType;
    @ApiModelProperty(value = "服务组id")
    private Integer serviceGroup;


}
